<template>
	<view class="confirm">
		<view class="bossInfo flex-sb aic" @click="toFirmDetail">
			<view class="info">
				<image :src="merchantObj.merchantLogo?merchantObj.merchantLogo:'/static/img/jobDetail/personalComfirm.png'" alt="" mode="scaleToFill"></image>
				<view class="bossName">
					<span v-if="merchantObj.merchantName">{{merchantObj.merchantName}}</span>
					<span v-if="!merchantObj.merchantName">暂未设置名称</span><br>
					<view class="confirmCard">
						<view id="round"></view>
						<span v-if="!merchantObj.merchantType">个人认证</span>
						<span v-if="merchantObj.merchantType">企业认证</span>
					</view>
				</view>
			</view>
			<image src="/static/img/arrow_right.png" mode="" class="arrow" v-if="merchantObj.merchantType"></image>
		</view>
	</view>
</template>

<script>
	export default {
		name:"confirm",
		data() {
			return {
				bossName:'马老师',
				merchantLogo:'',
				entId:'',
				merchantType:NaN,
			};
		},
		props:{
			confirmName:{
				type:String,
				default:'个人认证'
			},
			merchantObj:{
				type:Object,
				default(){
					return {}
				}
			}
		},
		mounted() {
			this.bossName=this.merchantObj.merchantName
			this.merchantLogo=this.merchantObj.merchantLogo
			this.entId=this.merchantObj.entId
			this.merchantType=this.merchantObj.merchantType
			
		},
		methods:{
			toFirmDetail(){
				if (merchantObj.merchantType) {
					uni.navigateTo({
						url:'/subpageB/common/firmDetail?entId=' + this.merchantObj.entId
					})
				}
			},
		}
	}
</script>

<style scoped lang="scss">
	.confirm{
		
		.bossInfo{
			width: 622rpx;
			height: 80rpx;
			margin: 32rpx;
			padding: 32rpx;
			background: #FFFFFF;
			border-radius: 8px 8px 8px 8px;
			
			.info {
				image{
					width: 80rpx;
					height: 80rpx;
					vertical-align: -6rpx;
				}
			}
			
			.bossName{
				display: inline-block;
				margin-left: 20rpx;
				font-size: 14px;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #001A18;
				
				.confirmCard{
					display: inline-block;
					padding: 0 10rpx;
					background: #E8FFFE;
					border-radius: 8rpx;
					#round{
						display: inline-block;
						border: 8rpx solid #00D3C7;
						width: 0;
						height: 0;
						border-radius: 8rpx;
					}
					span{
						margin-left: 4rpx;
						font-size: 12px;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #00D3C7;
					}
				}
			}
		}
		
		
		
	}
</style>